#include <Bullet.hh>

Bullet::Bullet(Window &win) : _Window(win)
{

}

Bullet::~Bullet()
{

}

void    Bullet::Initialize(sf::Sprite &sprite,sf::Vector2f &position, const sf::Vector2f &speed)
{
    this->_Sprite = sprite;
    this->_Position = position;
    this->_Speed = speed;
    this->_Sprite.Move(this->_Position);
}

void    Bullet::LoadContent(void)
{

}

void    Bullet::UnloadContent(void)
{

}

void    Bullet::Draw(Time)
{
    this->_Window.Draw(this->_Sprite);
}

void    Bullet::Update(Time)
{
    this->_Sprite.Move(this->_Speed);
    this->_Position = this->_Sprite.GetPosition();
}
